#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"

void test1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);
	LTPrint(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);

	LTPrint(plist);

}
void test2()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);
	LTPrint(plist);

	LTDestroy(plist);
	LTPrint(plist);

}
void test3()
{
	LTNode* plist = LTInit();
	LTPushFront(plist,2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushFront(plist, 5);
	LTPushFront(plist, 6);
	LTPrint(plist);
	/*LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);

	LTPrint(plist);*/
	LTNode*pos= ListFind(plist, 3);
	ListInsert(pos,9);
	LTPrint(plist);

}
void test4()
{
	LTNode* plist = LTInit();
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushFront(plist, 5);
	LTPushFront(plist, 6);
	LTPrint(plist);
	LTNode* pos = ListFind(plist, 3);
	ListErase(pos);
	pos = NULL;
	LTPrint(plist);
}


int main()
{
	//test1();
	  test2();
	//test3();
	//test4();


	return 0;
}